/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.supinfo.youfood.service;

import com.supinfo.youfood.dao.TypeEmployeDao;
import com.supinfo.youfood.entity.TypeEmploye;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author TaKeO
 */
@Stateless
public class TypeEmployeService {
    
    @EJB
    private TypeEmployeDao typeEmployeDao;
    
    public TypeEmploye findTypeEmployeById(Long id)
    {
        return typeEmployeDao.findTypeEmployeById(id);
    }
    
    public List<TypeEmploye> getAllTypeEmploye()
    {
        return typeEmployeDao.getAllTypeEmploye();
    }
    
    public void refreshTypeEmploye(TypeEmploye typeEmploye)
    {
        typeEmployeDao.refreshTypeEmploye(typeEmploye);
    }
    
    public List<TypeEmploye> getGerantTypeEmploye()
    {
        return typeEmployeDao.getGerantTypeEmploye();
    }
}
